package com.blb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.entity.Area;
import com.blb.mapper.AreaMapper;
import com.blb.service.IAreaService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author wss
 * @since 2020-05-21
 */
@Transactional
@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements IAreaService {

    @Resource
    private AreaMapper areaMapper;


    @Override
    public List<Area> getPageList(Map<String, Object> map) {
        return areaMapper.getPageList(map);
    }

    @Override
    public int getPageCount(Map<String, Object> map) {
        return areaMapper.getPageCount(map);
    }
}
